import { defineStore } from 'pinia'

export const useAuthStore = defineStore('auth', {
    state: () => {
        return {
            authKey: ""
        }
    },
    persist: {
        enabled: true,
        strategies: [
            {
                key: 'authKey',  //自定义 Key值
                storage: localStorage,  // 选择存储方式
            },
        ],
    }
})
